package br.ufc.great.dtx.tm.lm;

/**
 * 
 * @author Leonardo Oliveira Moreira
 *
 * Classe utilizada para representar os bloqueios do protocolo XDGL
 */
public class XDGLLockType {

	public static final int NONE = -1;
	
	public static final int EXCLUSIVE = 0;
	public static final int SHARED = 1;
	
	public static final int INTENTION_EXCLUSIVE = 2;
	public static final int INTENTION_SHARED = 3;
	
	public static final int EXCLUSIVE_TREE = 4;
	public static final int SHARED_TREE = 5;
	
	public static final int SHARED_INTO = 6;
	public static final int SHARED_AFTER = 7;
	public static final int SHARED_BEFORE = 8;
	
	/* Usado para a granularidade grossa */
	/* Estes bloqueios serão usados SOMENTE para os experimentos */
	public static final int EXCLUSIVE_DOCUMENT = 9;
	public static final int SHARED_DOCUMENT = 10;
	
}
